import request from "@/utils/request";
import axios from "axios";
export const getPlayListInfoService = (songs:string[][]) => request.post("/batchGetSongInfo",
{
    "songs":songs
}
);



export const getSongLinkService = (mid: string) =>
  request.get("/getMusicPlay", {
    params: {
      songmid:mid
    },
  });

export const getSongCoverService = (mid: string,size?:string) =>
  request.get("/getImageUrl", {
    params: {
      id: mid,
      size:size
    },
  });

  export const getSearchByKeyService=(keyWord:string)=>
    request.get("/getSearchByKey",{
      params:{
        key:keyWord
      }
    });
  
    export const getLyricService=(mid:string,isFormat:boolean)=>
        request.get("/getLyric", {
          params: {
            songmid:mid,
            isFormat:isFormat
          },
        });
    
  